package nc.ui.uif2.actions;

import nc.ui.trade.button.ButtonVOFactory;
import nc.ui.uif2.NCAction;
import nc.vo.trade.button.ButtonVO;

public class ActionInitializer
{
  public static void initializeAction(NCAction action, int btnNo)
  {
    ButtonVO btnvo = ButtonVOFactory.getInstance().build(btnNo);
    action.setBtnName(btnvo.getBtnName());
    action.setHotKey(btnvo.getHotKey());
    action.setDisplayHotKey(btnvo.getDisplayHotKey());
    action.setBtnChinaName(btnvo.getBtnChinaName());
    action.putValue("ShortDescription", btnvo.getBtnName());
  }
}